package com.grf.hadoop.practice;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

public class TempReducer extends Reducer<TempBean, NullWritable, TempBean, NullWritable> {

    @Override
    protected void reduce(TempBean key, Iterable<NullWritable> values, Context context)
            throws IOException, InterruptedException {
        int i = 0;

        for (NullWritable value : values) {

            context.write(key, value);
        }
    }

}
